#pragma once

#include <EnvDetect.hpp>
#include <LibraryConfig.hpp>

#ifdef ZZZ_OS_WIN32
#include "zImageConfig.hpp.win32"
#endif

#ifdef ZZZ_OS_WIN64
#include "zImageConfig.hpp.win64"
#endif

#if !defined(ZZZ_LIB_DEVIL) && !defined(ZZZ_LIB_FREEIMAGE)
#define ZZZ_IMAGE_BY_SELF
#endif

#ifdef ZZZ_DYNAMIC
  #ifdef ZGRAPHICS_SOURCE
    #define ZIMAGE_FUNC __declspec(dllexport)
    #define ZIMAGE_CLASS __declspec(dllexport)
  #else
    #define ZIMAGE_FUNC __declspec(dllimport)
    #define ZIMAGE_CLASS __declspec(dllimport)
  #endif
#else
  #define ZIMAGE_FUNC
  #define ZIMAGE_CLASS
#endif